define(['../../../../js/lib/other/sweet-alert'],function() {
    return ['$scope','$location', '$interval','$timeout','$routeParams','bizProxy', function($scope,$location,$interval,$timeout,$routeParams,bizProxy) {
		$scope.$emit("top-show",'true');//顶部显示
    	$scope.$emit('menuTypeLight','mine'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','true'); 	//隐藏底部menu
    	$scope.$emit('flag-tag','42');//显示底部文字
    	
    	//获取代理接口数据(案件列表)
    	(function(){
        	var headerInfo = {},bizInfo = {};
        	headerInfo.pageNum = '';
        	headerInfo.pageSize = '';
        	headerInfo.sessionId = transData.sessionId;
        	
    		$scope.$emit("loadingChangeNav",true);
    		bizProxy.queryProxyBizData("getMessageList",headerInfo,bizInfo,
    				function(tempData){//SUCCESS
		    			if(tempData.body != "" && tempData.body != null && tempData.body != "[]"){
							var tempMsgList = JSON.parse(tempData.body);
							$timeout(function(){
								$scope.tempMsgList = tempMsgList;
								$scope.$emit("loadingChangeNav",false);
							},0);
						}else{
							$timeout(function(){
								$scope.promptSlogan = true;
								$scope.tempMsgList = "";
								$scope.$emit("loadingChangeNav",false);
							},0);
						}
		    		},function(data){//FAIL
		    			$timeout(function(){
		    				$scope.promptSlogan = true;
							$scope.tempMsgList = "";
							$scope.$emit("loadingChangeNav",false);
						},0);
		    		});
    	}());
    	
    	$scope.goMsgDetail = function(subject,msgContent,time){
    		$timeout(function(){
    			$scope.$emit("goNext","/msgDetail/"+subject+"_"+msgContent+"_"+time);
    		},100);
    	}
    	
    	
        $scope.$apply();
    }];
});